<a href="#" name="bktop" id="bktop"></a><br/><br/>
<h3><img class="seo_crawl_img" src="<?php echo $proj_config['site_url']; ?>images/seo_optimization.png" border="0" width="60" height="60" title="Crawler - <?php echo $proj_config['project_name']; ?>" alt="Crawler - <?php echo $proj_config['project_name']; ?>s">SEO Results for the page : <a href="<?php echo $actions['crawler_site']; ?>" target="_blank" title="Visit page <?php echo $actions['crawler_site']; ?>"><?php echo $actions['crawler_site']; ?></a></h3>
<?php include(BASEPATH . 'views/messages.php'); ?>
<br/>
<form name="frmajx" id="frmajx" class="frm" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="mode" id="mode" value="check" />
	<table cellpadding="0" cellspacing="0" border="0" width="90%">
		<tr>
			<td align="left" valign="top" colspan="2">
				<ul>
				<li><a href="#set_pgdata">&raquo; Page Data</a></li>
				<li><a href="#set_pgheads">&raquo; Page Headings and Strong Data</a></li>
				<li><a href="#set_seokeywords">&raquo; SEO Keywords and Phrases</a></li>
				<li><a href="#set_jnkmeta">&raquo; Junk MetaData</a></li>
				<li><a href="#set_intlinks">&raquo; Internal Links</a></li>
				<li><a href="#set_extlinks">&raquo; External Links</a></li>
				<li><a href="#set_linksmiss">&raquo; Links with Missing Details</a></li>
				<li><a href="#set_imgmiss">&raquo; Images with Missing Details</a></li>
				<li><a href="#set_allimg">&raquo; All Images</a></li>
				<li><a href="#set_alllinks">&raquo; All Links</a></li>
				<li><a href="#set_pgbody">&raquo; Page Body</a></li>
				<li><a href="#set_seorecom">&raquo; General SEO Recommendation</a></li>
				
				<br/>
			</td>
		</tr>	
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div style="padding-bottom:5px"><?php echo chk_recom_pg_title($actions['page_titles'][0]); ?></div>
				<div style="padding-bottom:5px"><?php echo chk_recom_pg_descp($actions['meta_description'][0]); ?></div>
				<div style="padding-bottom:5px"><?php echo chk_recom_pg_keyword($actions['meta_keywords'][0]); ?></div>			
				<div style="padding-bottom:5px"><?php echo chk_recom_pg_h1($actions['h1_data'][0]); ?></div>							
				<div style="padding-bottom:5px"><?php echo chk_recom_links_missing($actions['links_data']['recom_cnt']); ?></div>				
				<div style="padding-bottom:5px"><?php echo chk_recom_images_missing($actions['img_data']['cnt_incomp_recom']); ?></div>				
				
			</td>
		</tr>		
		<tr>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_pgdata" id="set_pgdata"></a>
					<ul class="menu">
						<li class="active">Page data</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">						
							<li>Page title <b><?php echo chkempty($actions['page_titles'][0]); ?></b></li>
							<li>Meta Description <b><?php echo chkempty($actions['meta_description'][0]); ?></b></li>						
							<li>Meta Keywords <b><?php echo chkempty($actions['meta_keywords'][0]); ?></b></li>
							<li>Google Verification <b><?php echo chkempty($actions['meta_google_verify'][0]); ?></b></li>
							<li>Yahoo Verification  <b><?php echo chkempty($actions['meta_yahoo_verify'][0]); ?></b></li>
							<li>Robots <b><?php echo chkempty($actions['meta_robots'][0]); ?></b></li>	
						</ul>						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
			<td width="5%" align="left" valign="top">&nbsp;</td>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_pgheads" id="set_pgheads"></a>
					<ul class="menu">
						<li class="active">Headings &amp Strong(Highlighted) data</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php 
						if(count($actions['h1_data']) > 0){ 
							foreach($actions['h1_data'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li>H1 => <?php echo $str_data; ?></li>							
							<?php }//</foreach> ?>
						<?php }//</if>?>
						<?php 
						if(count($actions['h2_data']) > 0){ 
							foreach($actions['h2_data'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li>H2 => <?php echo $str_data; ?></li>							
							<?php }//</foreach> ?>
						<?php }//</if>?>
						<?php 
						if(count($actions['h3_data']) > 0){ 
							foreach($actions['h3_data'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li>H3 => <?php echo $str_data; ?></li>							
							<?php }//</foreach> ?>
						<?php }//</if>?>
						<?php 
						if(count($actions['strong_data']) > 0){ 
							foreach($actions['strong_data'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li>Strong => <?php echo $str_data; ?></li>							
							<?php }//</foreach> ?>
						<?php }//</if>?>
						<?php 
						if(count($actions['b_data']) > 0){ 
							foreach($actions['b_data'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li>Strong => <?php echo $str_data; ?></li>							
							<?php }//</foreach> ?>
						<?php }//</if>?>
						</ul>						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_seokeywords" id="set_seokeywords"></a>
					<ul class="menu">
						<li class="active">SEO Keywords</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['seo_keywords']['all_words'])){ ?>
							<li>All Keywords => <?php echo chkempty($actions['seo_keywords']['all_words']); ?></li>							
							<li>One Keywords Phrase => <?php echo chkempty($actions['seo_keywords']['1_words_phrase']); ?></li>							
							<li>Two Keywords Phrase => <?php echo chkempty($actions['seo_keywords']['2_words_phrase']); ?></li>							
							<li>Three Keywords Phrase => <?php echo chkempty($actions['seo_keywords']['3_words_phrase']); ?></li>							
						<?php }else{ ?>
							<li>Sorry, no keywords found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
			<td width="5%" align="left" valign="top">&nbsp;</td>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_jnkmeta" id="set_jnkmeta"></a>
					<ul class="menu">
						<li class="active">Junk Meta data (<?php echo count($actions['metadata']); ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php 
						if(!empty($actions['metadata']) && count($actions['metadata']) > 0){ 
							foreach($actions['metadata'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $str_data; ?></li>							
						<?php }//</foreach> ?>
						<?php }else{ ?>
							<li>Sorry, no metadata found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		
		<tr>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_intlinks" id="set_intlinks"></a>
					<ul class="menu">
						<li class="active">Internal Links (<?php echo $actions['links_data_checks']['cnt_int_link']; ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['links_data_checks']['cnt_int_link'])){ 
								foreach($actions['links_data_checks']['recom_int'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $str_data; ?></li>								
						<?php }//</foreach> ?>	
						<?php }else{ ?>
							<li>Sorry, no internal links found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
			<td width="5%" align="left" valign="top">&nbsp;</td>
			<td width="47%" align="left" valign="top">
				<div class="container box_container"><a href="#" name="set_extlinks" id="set_extlinks"></a>
					<ul class="menu">
						<li class="active">External Links (<?php echo $actions['links_data_checks']['cnt_ext_link']; ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['links_data_checks']['cnt_ext_link'])){ 
								foreach($actions['links_data_checks']['recom_ext'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $str_data; ?></li>								
						<?php }//</foreach> ?>	
						<?php }else{ ?>
							<li>Sorry, no external links found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_linksmiss" id="set_linksmiss"></a>
					<ul class="menu">
						<li class="active">Links - Missing Titles (<?php echo $actions['links_data']['recom_cnt']; ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['links_data']['recom_cnt'])){ 
								foreach($actions['links_data']['recom'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $str_data; ?><br/><i>=><?php echo htmlentities($key); ?></i></li>								
						<?php }//</foreach> ?>	
						<?php }else{ ?>
							<li>Sorry, no links found without missing titles</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_imgmiss" id="set_imgmiss"></a>
					<ul class="menu">
						<li class="active">Images - Missing Details (<?php echo $actions['img_data']['cnt_incomp_recom']; ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['img_data']['incomp_recom'])){ 
								foreach($actions['img_data']['incomp_recom'] as $key=>$val){ 
									
									$str_data = $val;
									
							?>
							<li><?php echo $str_data; ?></li>								
						<?php }//</foreach> ?>	
						<?php }else{ ?>
							<li>Sorry, no images found without missing titles</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_allimg" id="set_allimg"></a>
					<ul class="menu">
						<li class="active">All Images (<?php echo $actions['img_data']['cnt_recom']; ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php if(!empty($actions['img_data']['recom'])){
								foreach($actions['img_data']['recom'] as $key=>$val){ 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val['src'], MAX_STRLEN_URLS); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val['src'];
								}
							?>
							<li>Src =><?php echo $str_data; ?>
							<br/>Title <i>=><?php echo htmlentities($val['title']); ?></i>
							<br/>Alt <i>=><?php echo htmlentities($val['alt']); ?></i>
							<br/>Width <i>=><?php echo htmlentities($val['width']); ?></i>
							<br/>Height <i>=><?php echo htmlentities($val['height']); ?></i>
							</li>								
						<?php }//</foreach> ?>	
						<?php }else{ ?>
							<li>Sorry, no images found without missing titles</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_alllinks" id="set_alllinks"></a>
					<ul class="menu">
						<li class="active">Anchor Links (<?php echo count($actions['anchor_links']); ?>)</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php 
						if(!empty($actions['anchor_links']) && count($actions['anchor_links']) > 0){ 
							foreach($actions['anchor_links'] as $key=>$val){
							
								$img_social_media = chk_social_media($val);
								 
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS+150); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $img_social_media.$str_data; ?></li>							
						<?php }//</foreach> ?>
						<?php }else{ ?>
							<li>Sorry, no links found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_pgbody" id="set_pgbody"></a>
					<ul class="menu">
						<li class="active">Page body</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">
						<?php 
						if(!empty($actions['body_data'][0]) && count($actions['body_data']) > 0){ 							
							foreach($actions['body_data'] as $key=>$val){ 
								$val = strip_tags($val);
								if(strlen($val) > MAX_STRLEN_URLS){
									$data_conv = str_split($val, MAX_STRLEN_URLS+100); 
									$str_data = implode('<br/>',$data_conv);
								}else{
									$str_data = $val;
								}
							?>
							<li><?php echo $str_data; ?></li>							
						<?php }//</foreach> ?>
						<?php }else{ ?>
							<li>Sorry, no page data found</li>							
						<?php }//</if> ?>
						</ul>
						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
		<tr>
			<td width="97%" align="left" valign="top" colspan="3">
				<div class="container box_container"><a href="#" name="set_seorecom" id="set_seorecom"></a>
					<ul class="menu">
						<li class="active">General Reccomendation</li>
					</ul>
					<span class="clear"></span>
					<div class="content" style="display: block;">
						<ul class="li_stripes">			
							<li>More details on the Domain: <a target="_blank" href="http://www.whois.net/whois/<?php echo urlencode(str_replace('www.','',$actions['crawler_site'])); ?>">http://www.whois.net/whois/<?php echo urlencode(str_replace('www.','',$actions['crawler_site'])); ?></a></li>			
							
							<li>Create Sitemaps and URL list: <a target="_blank" href="http://www.xml-sitemaps.com/">http://www.xml-sitemaps.com</a></li>							
							
							<li>Submit the sitemap to: Google - <a target="_blank" href="https://www.google.com/webmasters/tools/home?hl=en">https://www.google.com/webmasters/tools/home?hl=en</a></li>
							<li>Submit the sitemap to: Yahoo - <a target="_blank" href="http://siteexplorer.search.yahoo.com/">http://siteexplorer.search.yahoo.com/</a></li>
							<li>Submit the sitemap to: Bing - <a target="_blank" href="http://www.bing.com/toolbox/webmasters/">http://www.bing.com/toolbox/webmasters/</a></li>					
							
							<li>Submit URL:Dmoz - <a target="_blank" href="http://www.dmoz.org/">http://www.dmoz.org/</a></li>
							<li>Submit URL:Open Web Dir - <a target="_blank" href="http://www.openwebdirectory.org/">http://www.openwebdirectory.org/</a></li>
							<li>Submit URL:Hot Frog - <a target="_blank" href="http://www.hotfrog.in/">http://www.hotfrog.in/</a></li>							
						</ul>						
					</div>							
				</div>
				<br/><a href="#bktop">&raquo; Back to top</a>
			</td>
		</tr>
	</table>	
</form>
<span id="js_reset_settings"></span>